package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 问题答案对象 p_answer
 *
 * @author ruoyi
 * @date 2022-07-19
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("p_answer")
public class PAnswer extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 问题id
     */
    private Long qId;
    /**
     * 回复用户
     */
    private Long replyUserId;
    /**
     * 回复标题
     */
    @ApiModelProperty(value = "回复标题")
    private String replyTitle;
    /**
     * 回复信息
     */
    @ApiModelProperty(value = "回复信息")
    private String replyMsg;
    /**
     * 回复类型 0 咨询师 1 用户
     */
    @ApiModelProperty(value = "回复类型 0 咨询师 1 用户")
    private String type;
    /**
     * 分类标签id
     */
    private Long typeId;

    /**
     * 问题标题
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "问题标题")
    private String title;

    /**
     * 回复用户名
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复用户名")
    private String userName;

    /**
     * 回复用户头像
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复用户头像")
    private String avatar;

    /**
     * 回复用户级别
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复用户级别")
    private String levelInfo;

    /**
     * 回复用户介绍
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "回复用户介绍")
    private String descInfo;

    /**
     * 分类标签
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "分类标签")
    private String typeName;
}
